<!--
  @author tanghongjun
  @since 2018/10/19 08:59
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>产品管理</title>
</head>
<body>

<div class="layui-fluid">
    <blockquote class="layui-crumb">
        前台产品>产品管理>
        <a lay-href="/showProduct/list.action">前台产品管理</a>>
        <a th:href="'/showProduct/addEditView.action?productId='+${servProductVO.productId}">[[${servProductVO.name}]]</a>>
        <zmn>关联后台产品</zmn>
    </blockquote>
    <div class="layui-card">
        <div th:replace="product/show/_tab::tab"></div>
        <div class="layui-card-body">
            <div th:replace="product/show/relation/_table::table"></div>

            <script type="text/html" id="zmn-table-tool">
                <div class="layui-btn-container">
                    <div class="layui-btn-group">
                        <button lay-event="del" class="layui-btn layui-btn-sm layui-btn-add"
                                th:if="${#authPermit.checkPermit('/showProduct/relation/deleteRelations.action')}" lay-text="删除" text="删除">-删除
                        </button>
                        <button  th:lay-href="|/showProduct/relation/addEditView.action?showProductId=${servProductVO.productId}|" class="layui-btn layui-btn-sm layui-btn-add"
                                th:if="${#authPermit.checkPermit('/showProduct/relation/addEditView.action')}" lay-text="新增关联关系" text="新增关联关系">+新增关联关系
                        </button>
                    </div>
                </div>
            </script>
        </div>

    </div>

</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">

    var json = {
        items: [[${items}]],
        showProductId:[[${servProductVO.productId}]]
    };

    layui.config({
        version: 2019091211081,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        product_show_relation_js: "product/show/relation/zmn.plat.product.relation.list",
    }).use(['index', 'product_show_relation_js']);

</script>